package com.macrounion.atv.service.entity;

import com.macrounion.base.service.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

/**
 * 站点表spot
 * @author Administrator 2020-11-05
 */
@ApiModel(value = "站点表", description = "站点表")
public class Spot extends BaseEntity implements Serializable {
    /**
     * 站点名称
     */
    @ApiModelProperty(value = "站点名称")
    private String name;

    /**
     * 上级站点id，跟站点为0
     */
    @ApiModelProperty(value = "上级站点id，跟站点为0")
    private String parentId;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * spot
     */
    private static final long serialVersionUID = 1L;

    /**
     * 站点名称
     * @return 站点名称
     */
    public String getName() {
        return name;
    }

    /**
     *
     * @mbg.generated
     */
    public Spot withName(String name) {
        this.setName(name);
        return this;
    }

    /**
     * 站点名称
     * @param name 站点名称
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * 上级站点id，跟站点为0
     * @return 上级站点id，跟站点为0
     */
    public String getParentId() {
        return parentId;
    }

    /**
     *
     * @mbg.generated
     */
    public Spot withParentId(String parentId) {
        this.setParentId(parentId);
        return this;
    }

    /**
     * 上级站点id，跟站点为0
     * @param parentId 上级站点id，跟站点为0
     */
    public void setParentId(String parentId) {
        this.parentId = parentId == null ? null : parentId.trim();
    }

    /**
     * 备注
     * @return 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     *
     * @mbg.generated
     */
    public Spot withRemark(String remark) {
        this.setRemark(remark);
        return this;
    }

    /**
     * 备注
     * @param remark 备注
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", name=").append(name);
        sb.append(", parentId=").append(parentId);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}